home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 February
/
PCWorld_2000-02_cd.bin
/
Software
/
Vyzkuste
/
xsetup
/
_SETUP.2
/
Group3
/
XQ Startmenu Items 1.xpl
< prev
next >
Wrap
Text File
|
1999-08-29
|
2KB
|
70 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="6"
"COUNT"="4"
"UIPATH"="Appearance\Start menu\Visible Items"
"NAME"="Visible Items #1"
"VERSION"="1.70"
"LANGUAGE"="VBScript"
"TEXT 1"="Show "Favorites" in Start menu"
"TEXT 2"="Show "Recent Documents" in Start menu"
"TEXT 3"="Show "Run..." in Start menu"
"TEXT 4"="Show "Exit..." in Start menu"
"DESCRIPTION 1"="Use this plug-in to show or hide some of the items in the Start menu."
"DESCRIPTION 2"="NOTE: "Show Favorites" requires Internet Explorer 4."
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
'Declaration of some constants
sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
'Called when the Plugin is started
SUB Plugin_Initialize
i=RegReadValue(sp&"NoFavoritesMenu") 'DW
If IsEmpty(i) or i=0 then SetUIElement 1,true
i=RegReadValue(sp&"NoRecentDocsMenu") 'DW
if IsEmpty(i) or i=0 then SetUIElement 2,true
i=RegReadValue(sp&"NoRun") 'DW
if IsEmpty(i) or i=0 then SetUIElement 3,true
i=RegReadValue(sp&"NoClose") 'DW
if IsEmpty(i) or i=0 then SetUIElement 4,true
END SUB
'Called when the Plugin should validate the Data the user has entered
SUB Plugin_CheckData(ElementIndex)
END SUB
'Called when the Plugin should apply the changes
SUB Plugin_Apply(ElementIndex,ElementSubIndex)
Call WriteIt(1,sp&"NoFavoritesMenu")
Call WriteIt(2,sp&"NoRecentDocsMenu")
Call WriteIt(3,sp&"NoRun")
Call WriteIt(4,sp&"NoClose")
Call Logoff
END SUB
Sub WriteIt(ITM,PATH)
b=GetUIElement(ITM)
if b=true then
s=RegReadValue(PATH)
if IsEmpty(s)=false then
Call RegDeleteValue(Path)
end if
else
Call RegWriteValue(PATH,1,2)
end if
End Sub
'Called when the Plugin is about to be removed from memory
SUB Plugin_Terminate
END SUB